import request from './index'

// 获取我的流水统计
export function getMyFlowStatistics() {
  return request({
    url: 'user-flow-statistics/my-statistics',
    method: 'get'
  })
}

// 检查我的流水平衡状态
export function checkMyFlowBalance() {
  return request({
    url: 'user-flow-statistics/my-balance',
    method: 'get'
  })
}

// 获取流水统计排行榜
export function getFlowRanking() {
  return request({
    url: 'user-flow-statistics/ranking',
    method: 'get'
  })
}

// 获取流水不平衡用户
export function getUsersWithNegativeBalance() {
  return request({
    url: 'user-flow-statistics/negative-balance',
    method: 'get'
  })
}

// 获取流水盈余用户
export function getUsersWithPositiveBalance() {
  return request({
    url: 'user-flow-statistics/positive-balance',
    method: 'get'
  })
}

// 获取平台流水统计
export function getPlatformFlowStatistics() {
  return request({
    url: 'user-flow-statistics/platform-statistics',
    method: 'get'
  })
}

// 获取指定用户流水统计
export function getUserFlowStatistics(userId) {
  return request({
    url: `user-flow-statistics/user/${userId}`,
    method: 'get'
  })
}
